package 抽象工厂模式;

public class main {
    public static void main(String[] args) {
        Computer appleCom = new ComtruteFactory().createComputer("I");
        Computer miCom = new ComtruteFactory().createComputer("MI");
        Phone applePho = new PhoneFactory().createPhone("I");
        Phone miPho = new PhoneFactory().createPhone("MI");
        System.out.println(appleCom.internet());
        System.out.println(miCom.internet());
        System.out.println(applePho.call());
        System.out.println(miPho.call());
    }
}
